package com.dragon.mmochat.message;

import com.dragon.mmochat.MmochatConstant;
import com.skymobi.buffer.SkymobiBuffer;
import com.skymobi.message.SkymobiProtocolMessage;

public class Mmochat_2_1C extends SkymobiProtocolMessage {
	int mapId;
	byte line;
	int roleId;
	short x;
	short y;

	public Mmochat_2_1C() {
		setMsgCode(MmochatConstant.MSGCODE_MMOCHAT_C_2_1);
	}

	@Override
	protected void decodeBody(SkymobiBuffer in) {
		mapId = in.getInt();
		line = in.get();
		roleId = in.getInt();
		x = in.getShort();
		y = in.getShort();
	}

	public int getRoleId() {
		return roleId;
	}

	public short getX() {
		return x;
	}

	public short getY() {
		return y;
	}

	public int getMapId() {
		return mapId;
	}

	public byte getLine() {
		return line;
	}

}